package com.changfen.exception;

/**
 * @author 86180
 * @Classname BeanCopyException
 * @Description TODO
 * @Date 2022/8/28 12:06
 */
public class BeanCopyException extends RuntimeException {

    private static final long serialVersionUID = 1307495223026185099L;

    private int code;

    public BeanCopyException() {
        super();
    }

    public BeanCopyException(int code) {
        super();
        this.code = code;
    }

    public BeanCopyException(String message) {
        super(message);
    }

    public BeanCopyException(String message, int code) {
        super(message);
        this.code = code;
    }

    public BeanCopyException(String message, Throwable cause) {
        super(message, cause);
    }

    public BeanCopyException(String message, Throwable cause, int code) {
        super(message, cause);
        this.code = code;
    }

    public BeanCopyException(Throwable cause) {
        super(cause);
    }

    public BeanCopyException(Throwable cause, int code) {
        super(cause);
        this.code = code;
    }

    protected BeanCopyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    protected BeanCopyException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, int code) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}